package com.android.shuttle.chart.xlchart;

/**
 * 3d -> 2d
 */
public enum AxisMode {
    XY(0), XZ(1), YZ(2);
    int mode;
    private static AxisMode axisMode;


    AxisMode(int mode) {
        this.mode = mode;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    /**
     * 根据当前axismode切换下一mode
     *
     * @param currentAxisMode
     * @return
     */
    public static AxisMode getAxisMode(AxisMode currentAxisMode) {
        switch (currentAxisMode) {
            case XY:
                axisMode = XZ;
                break;
            case XZ:
                axisMode = YZ;
                break;
            case YZ:
                axisMode = XY;
                break;
        }
        return axisMode;
    }
}